﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ESAM_Assignment_3
{
    public partial class Logout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //eric
            Response.CacheControl = "no-cache";

            //Initialise the session variables back to the default values.
            Session[Common.ESAM_ADMIN] = false;
            Session[Common.ESAM_LOGIN] = false;
            Session[Common.ESAM_FULLNAME] = null;

            //eric
            Session[Common.ESAM_USERNAME] = null;

            //Redirect the user back to the DEFAULT webpage
            string URL = "Default.aspx";
            Response.Redirect(URL);
        }
    }
}